package sealte.hvpms.dao;

import java.util.List;

import sealte.hvpms.pojo.Poll;

public interface PollDAO {
	
	public boolean addNew(Poll poll);
	
	public boolean isDuplicated(String name,int builder);
	
	public int getID(String name,int builder);
	
	public int getAllRecorders(String kw,int builder);
	
	public List<Poll> listAll(int currentPage,int lineSize,String kw,int builder);
	
	public boolean batchDeleteByID(int[] poll_ids,int builder);
	
	public boolean batchModifyIsenabledByID(int[] poll_ids,int builder,String enabled);
	
	public Poll getPoll(int poll_id);
	
	public int getRuleById(int poll_id);
	
	public int getPollRuleByID(int poll_id);
	
	public String getNameByID(int poll_id);
	
}
